package com.lysh.http.enums;

/**
 * @author liyishan
 * @date 2023/4/19 11:50
 */

public enum ErrorMessage {
    SDK_ERROR(100, "sdk local exception"),
    PARAM_ERROR(101, "parameter exception"),
    IO_ERROR(102, "io exception"),
    ADD_SIGN_ERROR(103, "add sign exception"),
    BUILD_URL_ERROR(104, "build url exception"),
    TOPARAM_ERROR(105, "handler factory exception");

    private Integer code;
    private String message;

    private ErrorMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
